<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>批次管理</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  #parse('/headFiles.html')
</head>
<body>
<div class="layui-fluid layui-form" wid100>
    <div class="layui-card">
        <div class="layui-card-body">
            <div class="layui-row">
                <div class="layui-col-xs6">
                    <div class="layui-form-item">
                        <label class="layui-form-label">批次ID</label>
                        <div class="layui-input-block">
                            <input type="hidden" name="batchId" value="$!{batchId}">
                            <div class="layui-form-mid layui-word-aux">$!{batchId}</div>
                        </div>
                    </div>
                </div>
                <div class="layui-col-xs6">
                    <div class="layui-form-item">
                        <label class="layui-form-label">设备类型</label>
                        <div class="layui-input-block">
                            <div class="layui-form-mid layui-word-aux">$!{deviceType.name}($!{deviceTypeId})</div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-row">
                <div class="layui-col-xs3">
                    <div class="layui-form-item">
                        <label class="layui-form-label">起始位</label>
                        <div class="layui-input-block">
                            <div class="layui-form-mid layui-word-aux">$!{startNum}</div>
                        </div>
                    </div>
                </div>
                <div class="layui-col-xs3">
                    <div class="layui-form-item">
                        <label class="layui-form-label">数量</label>
                        <div class="layui-input-block">
                            <div class="layui-form-mid layui-word-aux">$!{produceTotal}</div>
                        </div>
                    </div>
                </div>
                <div class="layui-col-xs6">
                    <div class="layui-form-item">
                        <label class="layui-form-label">批次描述</label>
                        <div class="layui-input-block">
                            <div class="layui-form-mid layui-word-aux">$!{name}</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    #foreach($item in $deviceTypeFuncList)
    <div class="layui-card">
        <div class="layui-card-header">$!{item.name}</div>
        #if($item.code == 'CDCZ')
        <div class="layui-card-body">
            <div class="layui-row">
                <div class="layui-col-sm6">
                    <div class="layui-form-item">
                        <label class="layui-form-label">IOT节点</label>
                        <div class="layui-input-block">
                            <select name="CDCZConfig.iotNodeId">、
                                #if($utils.isNull($CDCZConfig.iotNodeId))
                                <option value="">未配置</option>
                                #end
                                #foreach($iotNode in $iotNodeList)
                                <option value="$!{iotNode.id}" $!{utils.eq($CDCZConfig.iotNodeId,$iotNode.id,'selected')}>$!{iotNode.name}($!{iotNode.id})</option>
                                #end
                            </select>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        #end
        #if($item.code == 'CDB')
        <div class="layui-card-body">
            <div class="layui-row">
                <div class="layui-col-sm6">
                    <div class="layui-form-item">
                        <label class="layui-form-label">IOT节点</label>
                        <div class="layui-input-block">
                            <select name="CDBConfig.iotNodeId">、
                                #if($utils.isNull($CDBConfig.iotNodeId))
                                <option value="">未配置</option>
                                #end
                                #foreach($iotNode in $iotNodeList)
                                <option value="$!{iotNode.id}" $!{utils.eq($CDBConfig.iotNodeId,$iotNode.id,'selected')}>$!{iotNode.name}($!{iotNode.id})</option>
                                #end
                            </select>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        #end
        #if($item.code == 'BXSCN')
        <div class="layui-card-body">
            <div class="layui-row">
                <div class="layui-col-sm6">
                    <div class="layui-form-item">
                        <label class="layui-form-label">IOT节点</label>
                        <div class="layui-input-block">
                            <select name="BXSCNConfig.iotNodeId">、
                                #if($utils.isNull($BXSCNConfig.iotNodeId))
                                <option value="">未配置</option>
                                #end
                                #foreach($iotNode in $iotNodeList)
                                <option value="$!{iotNode.id}" $!{utils.eq($BXSCNConfig.iotNodeId,$iotNode.id,'selected')}>$!{iotNode.name}($!{iotNode.id})</option>
                                #end
                            </select>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        #end
        #if($item.code == 'PCL')
        <div class="layui-card-body">
            <div class="layui-row">
                <div class="layui-col-sm6">
                    <div class="layui-form-item">
                        <label class="layui-form-label">密码密钥</label>
                        <div class="layui-input-block">
                            <input type="text" name="PCLConfig.secretKey" placeholder="必填项" autocomplete="off" class="layui-input" value="$!{PCLConfig.secretKey}">
                        </div>
                    </div>
                </div>
            </div>
        </div>
        #end
    </div>
    #end
    <div class="layui-form-item layui-hide">
        <input type="button" lay-submit lay-filter="LAY-form-submit" id="LAY-form-submit" value="确认">
    </div>
</div>
#parse('/footFiles.html')
<script>
layui.config({
  base: '$!{webRoot}/layuiadmin/' //静态资源所在路径
  ,webRoot:'$!{webRoot}'
}).extend({
  index: 'lib/index' //主入口模块
}).use(['index', 'form'], function(){
  var $ = layui.$,form = layui.form;
})
</script>
</body>
</html>